/* 
 * File:   error_dialog.hpp
 * Author: jolo
 *
 * Created on 5. Oktober 2011, 23:11
 */

#ifndef WIDGETS_ERROR_DIALOG_HPP
#define	WIDGETS_ERROR_DIALOG_HPP

#include "dialog.hpp"

class QBoxLayout;

namespace widgets
{
    class label;
    
    class log_widget;
    
    class error_dialog : public dialog
    {
        Q_OBJECT
    public:
        error_dialog(QWidget* p, const QString& title = "");
        virtual ~error_dialog();

    protected:
        QBoxLayout* box_layout();
        void set_message(const string& msg);
        
    private:
        label* lbl_w_;
        log_widget* log_w_;
    };

}

#endif	/* ERROR_DIALOG_HPP */

